import mixins from '/components/editorAnalysis/mixins'
const { mfutil } = getApp();
Component({
  mixins: [mixins],
  data: {},
  props: {},
  didMount() {
    console.log(this.props.data);
    
    this.setData({
      dataArray: this.props.data
    })
  },
  didUpdate(prevProps) {
    if (prevProps.data != this.props.data) {
      // dataArray
      this.setData({
        dataArray: this.props.data,
      })
    }
  },
  didUnmount() { },
  methods: {
    saveRef(ref) {
      mfutil.tempConfig._refs[ref.data.item.name1 || ref.data.item.id] = ref;
    },
    // video(ref){
    //   this.saveVideo = ref;
    //   console.log(this.saveVideo,'this.saveVideothis.saveVideothis.saveVideothis.saveVideothis.saveVideo')
    // }
  },
});
